package com.xdtech.play.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.sql.Timestamp;

import com.xdtech.core.model.BaseItem;
import com.xdtech.core.orm.utils.BeanUtils;
import com.xdtech.play.model.PlayStake;

import com.xdtech.web.freemark.item.GridColumn;

/**
 * 
 * @author max.zheng
 * @create 2016-05-08 23:48:33
 * @since 1.0
 * @see
 */
public class PlayStakeItem extends BaseItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private Long id;
	@GridColumn(title="下注金额",width=100)
	private Integer money;
	@GridColumn(title="拆分红包金额",width=100)
	private Double redResult;
	@GridColumn(title="倍数",width=100)
	private String multiple;
	@GridColumn(title="输赢金额",width=100)
	private Integer sumMoney;
	@GridColumn(title="玩家名称",width=100)
	private String memberName;
	@GridColumn(title="玩家点数",width=100)
	private Integer playPoint;
	@GridColumn(title="当前金额",width=100)
	private Integer currentMoney;
	@GridColumn(title="会员ID",width=100)
	private Long memberId;

	public void setId(Long id) {
		this.id = id;
		addQuerys("id", id);
	}
	public Long getId() {
		return id;
	}
	
	public void setMoney(Integer money) {
		this.money = money;
		addQuerys("money", money);
	}
	public Integer getMoney() {
		return money;
	}
	
	public void setRedResult(Double redResult) {
		this.redResult = redResult;
		addQuerys("redResult", redResult);
	}
	public Double getRedResult() {
		return redResult;
	}
	
	public void setMultiple(String multiple) {
		this.multiple = multiple;
		addQuerys("multiple", multiple);
	}
	public String getMultiple() {
		return multiple;
	}
	
	public void setSumMoney(Integer sumMoney) {
		this.sumMoney = sumMoney;
		addQuerys("sumMoney", sumMoney);
	}
	public Integer getSumMoney() {
		return sumMoney;
	}
	
	public void setMemberName(String memberName) {
		this.memberName = memberName;
		addQuerys("memberName", memberName);
	}
	public String getMemberName() {
		return memberName;
	}
	
	public void setPlayPoint(Integer playPoint) {
		this.playPoint = playPoint;
		addQuerys("playPoint", playPoint);
	}
	public Integer getPlayPoint() {
		return playPoint;
	}
	
	public void setCurrentMoney(Integer currentMoney) {
		this.currentMoney = currentMoney;
		addQuerys("currentMoney", currentMoney);
	}
	public Integer getCurrentMoney() {
		return currentMoney;
	}
	
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
		addQuerys("memberId", memberId);
	}
	public Long getMemberId() {
		return memberId;
	}
	
	/**
	 * 根据model构建vo
	 * 
	 * @author max
	 * @return
	 */
	public static PlayStakeItem createItem(PlayStake playStake) {
		PlayStakeItem playStakeItem = null;
		if(playStake!=null) {
			playStakeItem = new PlayStakeItem();
			BeanUtils.copyProperties(playStakeItem, playStake);
			//自定义属性设置填充
		}
		
		return playStakeItem;
	}
	/**
	 * 根据model集合创建vo集合
	 * 
	 * @author max
	 * @return
	 */
	public static List<PlayStakeItem> createItems(List<PlayStake> playStakes) {
		List<PlayStakeItem> playStakeItems = new ArrayList<PlayStakeItem>();
		for (PlayStake playStake : playStakes) {
			playStakeItems.add(createItem(playStake));
		}
		return playStakeItems;
	}
}
